let arr =['a','g','b','f','e','c','d']

console.log(arr.sort());